package com.wan.lession56.web.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author anning
 */
@RestController
@RequestMapping("/demo2")
public class Demo2Controller {

    @RequestMapping(value = "/a",method = RequestMethod.GET)
    public String a(){
        System.out.println("aaaaaaaaaa");
        return "a";
    }

    @RequestMapping("/b")
    public String b(){
        System.out.println("Bbbb");
        return "b";
    }

    @RequestMapping("/helloA")
    public String helloA(){
        System.out.println("helloA");
        return "helloA";
    }

    @RequestMapping("/helloB")
    public String helloB(){
        System.out.println("helloB");
        return "helloB";
    }
    @RequestMapping("/login")
    public String login(){
        System.out.println("正在登录");
        return "您已注销本站账户";
    }

}
